package o;

import android.content.Context;
import android.view.ContextThemeWrapper;

public class bgh {
    public static Context ˋ(Context context) {
        try {
            int identifier = context.getResources().getIdentifier("androidhwext:style/Theme.Emui", null, null);
            if (identifier > 0) {
                return new ContextThemeWrapper(context, identifier);
            }
            return context;
        } catch (RuntimeException e) {
            Logger.e("BuoyHelper", "getEMUIContext, RuntimeException:" + e.toString());
            return context;
        }
    }
}
